<div class="form wide">
<?php $hour = array('1'=>'1', '2'=>'2', '3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8',
					'9'=>'9','10'=>'10','11'=>'11','12'=>'12','13'=>'13','14'=>'14','15'=>'15','16'=>'16',
					'17'=>'17','18'=>'18','19'=>'19','20'=>'20','21'=>'21','22'=>'22','23'=>'23','24'=>'24');?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'event-form',
	'enableAjaxValidation'=>false,
)); ?>
    <h3 class="title-bg">Create New Events</h3>
	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>
    <div class="row">
	<?php echo CHtml::activeLabelEx($model,'date'); ?>
	<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
		array(
			'name'=>'Event[date]',
			'options' => array('dateFormat'=>'yy-mm-dd'),
			'htmlOptions' => array('readonly'=>"readonly")
		)
	); ?>
     <?php echo $form->error($model,'date'); ?>
    </div>
 
	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'time'); ?>
		<?php echo CHtml::dropDownList('hour',false, $hour); ?>
		<?php echo CHtml::dropDownList('min',false, array(
			'00'=>'00', '15'=>'15', '30'=>'30', '45'=>'45',
		)); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'place'); ?>
		<?php echo $form->textField($model,'place',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'place'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id_type'); ?>
		<?php echo $form->dropDownList($model,'id_type',$model->getTypeEvent()); ?>
		<?php echo $form->error($model,'id_type'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->